<template>
  <div>
    <a-card :bordered="false">
      <f-table ref="table" rowKey="reportOutOneId" :columns="columns"
               :scroll="{x:newColumns.length*150,y:newColumns.length*35}" :multiple="false" :operator="operator"
               :params="queryParam" :api="api.reportOut1">
      </f-table>
    </a-card>

  </div>
</template>
<script>
  import api from './js/api'

  export default {
    name: 'reportOut1Detail',
    data() {
      //操作按钮
      let operator = []
      return {
        api: Object.assign(api, this.api),
        //列表初始化查询参数
        queryParam: {},
        // 表头
        columns: [
          {
            title: '序号',
            width: 100,
            align: 'center',
            customRender: (text, record, index) => index + 1
          },
          {
            title: '备用',
            align: 'center',
            width: 150,
            dataIndex: 'otherField1'
          },
          {
            title: '项目代码',
            align: 'center',
            width: 150,
            dataIndex: 'projectCode'
          },
          {
            title: '年月',
            align: 'center',
            width: 150,
            dataIndex: 'reportMonth'
          },
          {
            title: '批次',
            align: 'center',
            width: 150,
            dataIndex: 'batchNumber'
          },
          {
            title: '条目编号',
            align: 'center',
            width: 150,
            dataIndex: 'projectNo'
          },
          {
            title: '项目描述[设备/构成/明细]-英文',
            align: 'center',
            width: 200,
            dataIndex: 'projectDescEn'
          },
          {
            title: '项目描述[设备/构成/明细]-中文',
            align: 'center',
            width: 200,
            dataIndex: 'projectDescCn'
          },
          {
            title: '建筑编号',
            align: 'center',
            width: 150,
            dataIndex: 'buildingCodes'
          },
          {
            title: '专业',
            align: 'center',
            width: 150,
            dataIndex: 'professional'
          },
          {
            title: '类型',
            align: 'center',
            width: 150,
            dataIndex: 'type'
          },
          {
            title: '分部工程',
            align: 'center',
            width: 150,
            dataIndex: 'divisionOfEngineering'
          },
          {
            title: '分项工程',
            align: 'center',
            width: 150,
            dataIndex: 'sectionalWorks'
          },
          {
            title: '品牌',
            align: 'center',
            width: 150,
            dataIndex: 'brand'
          },
          {
            title: '供应商/厂家',
            align: 'center',
            width: 150,
            dataIndex: 'supplier'
          },
          {
            title: '备注',
            align: 'center',
            width: 150,
            dataIndex: 'remark'
          },
          {
            title: '尺寸',
            align: 'center',
            width: 150,
            dataIndex: 'size'
          },
          {
            title: '设备编号',
            align: 'center',
            width: 150,
            dataIndex: 'equipmentSerialNumber'
          },
          {
            title: '材质',
            align: 'center',
            width: 150,
            dataIndex: 'material'
          },
          {
            title: '容量/能力',
            align: 'center',
            width: 150,
            dataIndex: 'capacity'
          },
          {
            title: '容量单位/能力单位',
            align: 'center',
            width: 150,
            dataIndex: 'capacityUnit'
          },
          {
            title: '单位',
            align: 'center',
            width: 150,
            dataIndex: 'unit'
          },
          {
            title: '合约数量',
            align: 'center',
            width: 150,
            dataIndex: 'contractNum'
          },
          {
            title: '前期累计完成数量',
            align: 'center',
            width: 150,
            dataIndex: 'totalFinshNum'
          },
          {
            title: '剩余未完成数量',
            align: 'center',
            width: 150,
            dataIndex: 'remainNoFinshNum'
          },
          {
            title: '累计完成数量（供应商填写）',
            align: 'center',
            width: 200,
            dataIndex: 'totalFinshNumBySupplier'
          },
          {
            title: '累计完成数量（MW商务填写）',
            align: 'center',
            width: 200,
            dataIndex: 'totalFinshNumByMw'
          },
          {
            title: '条目类型',
            align: 'center',
            width: 150,
            dataIndex: 'itemType'
          },
          {
            title: '状态',
            align: 'center',
            width: 150,
            dataIndex: 'state'
          },
          {
            title: '审核状态',
            align: 'center',
            width: 150,
            dataIndex: 'checkState'
          }
        ],
        operator: operator
      }
    },
    created() {
      this.queryParam.projectCode = this.$route.query.projectCode
      this.queryParam.reportMonth = this.$route.query.reportMonth
      this.queryParam.batchNumber = this.$route.query.batchNumber
    },
    methods: {}
  }
</script>
